<template>
  <van-overlay :show="show">
    <div class="wrapper">
      <div class="block">
        <van-loading color="#fff" size="24px" vertical>加载中...</van-loading>
      </div>
    </div>

  </van-overlay>
</template>

<script>
  export default {
    name: 'loading',
    props: {
      show: true
    }
  }
</script>

<style lang="scss">
.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.block {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30vw;
  height: 30vw;
  border-radius: 2vw;
  background-color: #000;
}
</style>
